﻿using System.Windows;
using System.Windows.Input;

namespace CafeteriaInterface
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
		public MainWindow()
		{
			InitializeComponent();
		}

		private void btnLogin_Click(object sender, RoutedEventArgs e)
		{
			Payment abc = new Payment();
			abc.Show();
			this.Close();
		}

		private void btnLogin_KeyUp(object sender, KeyEventArgs e)
		{
			if ( Key.Enter == e.Key )
			{
				btnLogin_Click(sender, e);
			}
		}

		private void btnCancel_Click(object sender, RoutedEventArgs e)
		{
			this.Close();
		}
	}
}
